package com.tongji.housediy.view
{
	import com.tongji.housediy.events.commonEvent.ListItemMouseEvent;
	import com.tongji.housediy.events.goodsEvent.SearchGoodsEvent;
	import com.tongji.housediy.model.BrandModel;
	import com.tongji.housediy.model.SearchResultModel;
	import com.tongji.housediy.utils.DragDropManager;
	import com.tongji.housediy.view.components.CommonWindow;
	import com.tongji.housediy.view.components.DoubleDoor;
	import com.tongji.housediy.view.components.DoubleShiftDoor;
	import com.tongji.housediy.view.components.DoubleWindow;
	import com.tongji.housediy.view.components.FixedWindow;
	import com.tongji.housediy.view.components.Furniture;
	import com.tongji.housediy.view.components.ShiftDoor;
	import com.tongji.housediy.view.components.SingleDoor;
	import com.tongji.housediy.vo.GoodsSort;
	
	import flash.events.Event;
	
	import mx.binding.utils.BindingUtils;
	import mx.collections.ArrayCollection;
	import mx.controls.Alert;
	import mx.events.FlexEvent;
	import mx.events.StateChangeEvent;
	
	import org.robotlegs.mvcs.Mediator;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2011/5/12
	 */ 
	public class FirstLayorShowMediator extends Mediator
	{
		[Inject]
		public var  brandModel:SearchResultModel;
		
		[Inject]
		public var view:FirstLayorShowComp;
		
		[Inject]
		public var model:BrandModel;
		[Bindable]
		public var total:String;
		override public function onRegister():void
		{			
			view.addEventListener(StateChangeEvent.CURRENT_STATE_CHANGE, handleMessage);
		}

		public function handleMessage(event:StateChangeEvent):void
		{
			total = "共" + model.total.toString() + "个商品";
			if(view.currentState ==  "State4"){
			}			
		}

	}
}